    <?php
    /**
    * @package WordPress
    * @subpackage Tema
    */
    ?>
    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <title><?php wp_title(); ?></title>
    <link rel="stylesheet" type="text/css" media="screen" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
   
     
    <link href='http://fonts.googleapis.com/css?family=Orienta' rel='stylesheet' type='text/css'>
     
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
     
    <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/easyslider.js"></script>
     
    <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/dbx.js"></script>
     
    <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/dbx-key.js"></script>
    
    <link rel="shortcut icon" href="<?php bloginfo('stylesheet_directory'); ?>/images/favicon.jpg" />
    
    <script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-36559388-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
         
     
       
            <script type="text/javascript">
                    $(document).ready(function(){
        //  When user clicks on tab, this code will be executed
        $("#tabs li").click(function() {
            //  First remove class "active" from currently active tab
            $("#tabs li").removeClass('active');
     
            //  Now add class "active" to the selected/clicked tab
            $(this).addClass("active");
     
            //  Hide all tab content
            $(".tab_content").hide();
     
            //  Here we get the href value of the selected tab
            var selected_tab = $(this).find("a").attr("href");
     
            //  Show the selected tab content
            $(selected_tab).fadeIn();
     
            //  At the end, we add return false so that the click on the link is not executed
            return false;
        });
    });
    </script>
     
     <?php if(is_home()): ?>
    <script type="text/javascript">
                    $(document).ready(function(){  
                            $("#scroller").easySlider({
                                     
                                    continuous: true
                            });
                    });    
            </script>

     
         <?php endif;?>  
    <?php wp_head(); ?>
     
    <?php if(is_single()): //questo codice dice che tutto quello che sta tra qui e endif va messo solo se è la pagina post singola ?>
    <!-- Add jQuery library -->
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
     
    <!-- Add mousewheel plugin (this is optional) -->
    <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/fancybox/lib/jquery.mousewheel-3.0.6.pack.js"></script>
     
    <!-- Add fancyBox -->
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/js/fancybox/source/jquery.fancybox.css?v=2.1.2" type="text/css" media="screen" />
    <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/fancybox/source/jquery.fancybox.pack.js?v=2.1.2"></script>
     
    <!-- Optionally add helpers - button, thumbnail and/or media -->
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/js/fancybox/source/helpers/jquery.fancybox-buttons.css?v=1.0.5" type="text/css" media="screen" />
    <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/fancybox/source/helpers/jquery.fancybox-buttons.js?v=1.0.5"></script>
    <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/fancybox/source/helpers/jquery.fancybox-media.js?v=1.0.4"></script>
     
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/js/fancybox/source/helpers/jquery.fancybox-thumbs.css?v=1.0.7" type="text/css" media="screen" />
    <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/fancybox/source/helpers/jquery.fancybox-thumbs.js?v=1.0.7"></script>
     
     
      <script type="text/javascript">
       $(document).ready(function() {
     $(".various").fancybox({
      maxWidth : 800,
      maxHeight : 600,
      fitToView : false,
      width  : '70%',
      height  : '70%',
      autoSize : false,
      closeClick : false,
      openEffect : 'none',
      closeEffect : 'none'
     });
    });
            </script>
           
    <?php endif;?>        
     
    </head>

<body>
<div id="site">


<div id="branding">
    <h1>
      <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>">
        <?php bloginfo( 'name' ); ?>
      </a>
    </h1>
    
</div>



<div id="navigation">
  <ul>
<li class="home"><a class="home" href="<?php echo get_settings('home'); ?>">Home</a></li>
<?php wp_list_pages('title_li=&depth=2&sort_column=menu_order'); ?></ul>

  
<?php get_search_form( $echo ); ?>

</div>
